package cn.wowjoy.pda.android_pharmacy.api;

import cn.wowjoy.pda.android_pharmacy.model.commonEntity.DoorMergeEntity;
import cn.wowjoy.pda.android_pharmacy.model.commonEntity.DoorMergeQueryEntity;
import cn.wowjoy.pda.android_pharmacy.model.commonEntity.DoorMergeResultEntity;
import cn.wowjoy.pda.android_pharmacy.model.commonEntity.MergeVORequest;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by sinyo on 2017/7/18.
 */

public interface MergeService {
   // https://api.douban.com/v2/movie/top250?start=0&count=10
//   String BASE_URL = "https://api.douban.com/v2/movie/";
    String BASE_URL = "https://gateway.rubikstack.com/ms-pda/";

//    @GET("top250")
//    Observable<MovieInfo> getTopMovie(@Query("start") int start, @Query("count") int count);
     @GET("v1/prescription/get")
     Observable<DoorMergeEntity> getOrderInfo(@Query("number") String number);

    @POST("v1/prescription/merge")
    Observable<DoorMergeResultEntity> merge(@Body MergeVORequest request);


    @GET("v1/prescription/getMedicineByMergeId")
    Observable<DoorMergeQueryEntity> getMedicineByMergeId(@Query("mergeId") String mergeId);
}
